package com.imooc.dao;

import com.imooc.entity.Shop;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShopMapper {
    int deleteByPrimaryKey(Integer shopId);

    //新增店铺信息
    int insert(Shop record);

    //更新图片
    int updateShop(Shop shop);

    //查询店铺
    Shop queryByShopId(int shopId);

    int insertSelective(Shop record);

    Shop selectByPrimaryKey(Integer shopId);

    int updateByPrimaryKeySelective(Shop record);

    int updateByPrimaryKey(Shop record);

    //根据条件查询对应用户的所有店铺信息: 店铺名、店铺类别、店铺状态、区域id，用户id
    List<Shop> selectByShopCondition(@Param("shop")Shop shop);
}